package com.github.caijinglong

import java.io.File

fun main(args: Array<String>) {
//    val src = "/Users/cjl/Library/Application Support/Steam/steamapps/common/SlayTheSpire/SlayTheSpire.app/Contents/Resources/saves/THE_SILENT.autosave"
////    val src = "/Users/cjl/Library/Application Support/Steam/steamapps/common/SlayTheSpire/SlayTheSpire.app/Contents/Resources/saves/IRONCLAD.autosave"
//    val target = "./f/"
//
//    File(src).copyTo(File(target, "src.txt"), true)

    val dz = "THE_SILENT"
    val zs = "IRONCLAD"

//    val isDz = true
    val isDz = false

    val targetName = when (isDz) {
        true -> dz
        else -> zs
    }

    val src = "target.txt"
    val tar = "/Users/cjl/Library/Application Support/Steam/steamapps/common/SlayTheSpire/SlayTheSpire.app/Contents/Resources/saves/$targetName.autosave"

    File(src).copyTo(File(tar),true)
}